﻿using Electric.Core;
using Electric.Domain.Entitys.Commons;
using Electric.Domain.Shared.Entitys.Identity;
using Microsoft.AspNetCore.Identity;
using System.Security.Claims;

namespace Electric.Domain.Entitys.Status;


public class IpStatus : AuditedAggregateRoot<Guid>
{
    /// <summary>
    /// Status
    /// </summary>
    public bool Status { get; protected set; }

    /// <summary>
    /// RoundtripTime
    /// </summary>
    public int? RoundtripTime { get; protected set; }

    /// <summary>
    /// ttl
    /// </summary>
    public int? Ttl { get; protected set; }

    protected IpStatus()
    {
    }

    public IpStatus(Guid id, bool status, int? roundtripTime = null, int? ttl = null) : base(id)
    {
        Check.NotNull(status, nameof(status));
        Status = status;
        RoundtripTime = roundtripTime;
        Ttl = ttl;
    }

}


